<?php

return CMap::mergeArray(
                require(dirname(__FILE__) . '/main.php'), array(
            'id' => 'admin',
            'name' => 'VT phone',
            'controllerPath' => _APP_PATH_ . DIRECTORY_SEPARATOR . "protected" . DIRECTORY_SEPARATOR . "controllers" . DIRECTORY_SEPARATOR . "admin",
            'viewPath' => _APP_PATH_ . DIRECTORY_SEPARATOR . "protected" . DIRECTORY_SEPARATOR . "views" . DIRECTORY_SEPARATOR . "admin",
            'defaultController' => 'site',
            // autoloading model and component classes
            'import' => array(
                'application.models.admin.*',
                'application.components.admin.*',
                'application.modules.srbac.controllers.SBaseController',
            ),
            // application components
            'components' => array(
                'urlManager' => array(
                    'urlSuffix' => '.lvc',
                    'rules' => array(
                        '<controller:\w+>/<id:\d+>' => '<controller>/view',
                        '<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
                        '<controller:\w+>/<action:\w+>' => '<controller>/<action>',
                    ),
                    'showScriptName' => true,
                ),
//                'clientScript' => array(
//                    'class' => 'application.extensions.minify.MinifyClientScript',
//                    'combineFiles' => true,
//                    'compressCss' => true,
//                    'compressJs' => false,
//                ),
                'request' => array(
                    'enableCsrfValidation' => true,
                    'enableCookieValidation' => true,
                ),
                // authManager
                'authManager' => array(
                    'class' => 'CDbAuthManager',
                    'defaultRoles' => array('guest'),
                    'connectionID' => 'db',
                    'itemTable' => 'admin_access_items',
                    'assignmentTable' => 'admin_access_assignments',
                    'itemChildTable' => 'admin_access_itemchildren',
                ),
            ),
            // modules
            'modules' => array(
                'gii' => array(
                    'class' => 'system.gii.GiiModule',
                    'password' => 'MatKhau',
//                'ipFilters'=>array('127.0.0.11'),
                    // 'newFileMode'=>0666,
                    // 'newDirMode'=>0777,
                    'generatorPaths' => array(
                        'application.gii',
                    ),
                ),
                'srbac' => array(
                    'userclass' => 'AdminUser',
                    'userid' => 'id',
                    'username' => 'username',
                    'debug' => false,
                    'pageSize' => 10,
                    'superUser' => 'admin',
                    'css' => 'srbac.css',
                    'layout' => 'application.views.admin.layouts.moduleSetting',
                    'notAuthorizedView' => 'srbac.views.authitem.unauthorized',
                    'alwaysAllowed' => array(
                    ),
                    'userActions' => array(
                        'Show', 'View', 'List'
                    ),
                    'listBoxNumberOfLines' => 15,
                    'imagesPack' => 'tango',
                    'iconText' => true,
                    'alwaysAllowedPath' => 'srbac.components',
                ),
            ),
            'params' => array(
                'htmlMetadata' => array(),
            ),
                )
);
?>
